Class("UILabel",
{
	// --------- inheritance
	isa: UISimpleControl,

	// --------- constructor
	after:
	{
		initProperties: function(id, props)
		{
			// additional props
			this.addProperty("Text",				this.node.getText,				this.node.setText, id);
			this.addProperty("FontFamily",			this.node.getFontFamily,		this.node.setFontFamily);
			this.addProperty("FontSize",			this.node.getFontSize,			this.node.setFontSize);
			this.addProperty("FontStyle",			this.node.getFontStyle,			this.node.setFontStyle);
			this.addProperty("TextColor",			this.node.getTextFill,			this.node.setTextFill, "black");
			this.addProperty("TextStroke",			this.node.getTextStroke,		this.node.setTextStroke);
			this.addProperty("TextStrokeWidth",		this.node.getTextStrokeWidth,	this.node.setTextStrokeWidth);
			this.addProperty("Alignment",			this.node.getAlign,				this.node.setAlign);
			this.addProperty("Padding",				this.node.getPadding,			this.node.setPadding);
			this.addProperty("LineHeight",			this.node.getLineHeight,		this.node.setLineHeight);
			this.addProperty("CornerRadius",		this.node.getCornerRadius,		this.node.setCornerRadius);

			// add resizehandler
			//resizeHandler(this.layer, {id: id, radius: 3});
		}
	},

	// --------- methods
	override:
	{
		initNode: function()
		{
			return new Kinetic.Text();
		}
	}
})